package com.cxm.weilai.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 公共标记.
 *
 * @author admin
 */
public interface CommomUtil {
    public static final Integer INSTEAD_NO = 0; // 正常操作
    public static final Integer INSTEAD_YES = 1; // 代配车操作
    public static final Integer DELETE_FLAG = 1; // 已删除
    public static final Integer UN_DELETE_FLAG = 0; // 未删除
    public static final Integer LOCK_FLAG = 1; // 已锁定
    public static final Integer UNLOCK_FLAG = 0; // 未锁定
    public static final Integer UNACTIVE_FLAG = 0; // 未激活
    public static final Integer ACTIVE_FLAG = 1; // 激活
    public static final String INITION_PASSWORD = "123456"; // 用户初始密码
    public static final String TYPE_QYXZ = "qyxz"; // 字典类型：企业性质
    public static final String TYPE_KHLB = "khlb"; // 字典类型：客户类别
    public static final String TYPE_KHLX = "khlx"; // 字典类型：客户类型
    public static final String TYPE_KHKHYH = "khkhyh"; // 字典类型：客户开户银行
    public static final String TYPE_FWFS = "fwfs"; // 字典类型：服务方式
    public static final String TYPE_THS = "ths"; // 字典类型：提货省
    public static final String TYPE_THCITY = "thcity"; // 字典类型：提货城市
    public static final String TYPE_CONSIGNEE_LEVEL = "consigneeLevel"; // 收货人等级
    public static final String TYPE_CREDIT_ACCOUNT = "creditAccount"; // 信用账期

    public static final int MAX_QUOTE_TIME = 10; // 最高报价次数

    public static final Integer NO = 0; // 否
    public static final Integer YES = 1; // 是
    public static final Integer UN = 2; // 未知

    public static final Integer APPROVE_FLAG_UN = 0; // 未审核
    public static final Integer APPROVE_FLAG_YES = 1; // 审核通过
    public static final Integer APPROVE_FLAG_NO = 2; // 审核未通过
    public static final Integer APPROVE_FLAG_SUM = 3; // 未完全提交

    // 账户类型
    public static final String USERTYPE_INDIVIVDUAL = "2"; // 个体用户
    public static final String USERTYPE_ENTER = "1"; // 企业用户
    public static final String USERTYPE_UN = "0"; // 未设定

    // 登录的默认角色
    public static final int LOGIN_TYPE_CONSIGNER = 1; // 货主
    public static final int LOGIN_TYPE_CARRIER = 2; // 承运商

    // 账号
    public static final String ACCOUNTTYPE_ADMIN = "1"; // 主账号
    public static final String ACCOUNTTYPE_PERSION = "2"; // 子账号
    public static final String ACCOUNTTYPE_WEIT = "0"; // 未设定

    public static final Integer MODIFICATION_NUM = 0; // 默认修改次数
    public static final Integer CODEMODIFY_FLAG = 1; // 代码修改标记（1、可以修改编码)
    public static final Integer UN_CODEMODIFY_FLAG = 0; // 代码修改标记（0、不可修改)

    public static final Integer ROLE_YES = 1; // 角色标记（1 属于该角色)
    public static final Integer ROLE_NO = 0; // 角色标记（0不属于该角色)

    public static final Integer DEFAULT_DEAL_NUM = 0; // 默认交易数量
    public static final String MANAGE_DEFAULT_SYSCODE = "ycgil";
    public static final String DEFAULT_MENU_SYSCODE = "default"; // 系统菜单默认sys_code
    public static final String SYS_CODE_INDIVIDUAL_CARRIER = "P_carrier"; // 个人承运人对应的sys_code
    public static final String SYS_CODE_INDIVIDUAL_SHIPPER = "P_shipper"; // 个人货主对应的sys_code
    public static final String SYS_CODE_COMPANY_CARRIER = "E_carrier"; // 企业承运人对应的sys_code
    public static final String SYS_CODE_COMPANY_SHIPPER = "E_shipper"; // 企业货主对应的sys_code
    public static final String SYS_CODE_COMPANY_POWER = "E_power"; // 企业注册后的权限

    public static final Integer SYS_MENU_ROLE_C = 1; // 菜单的角色（0：货主的菜单，1：承运商的菜单，2:既是货主也是承运商的菜单）
    public static final Integer SYS_MENU_ROLE_S = 0;
    public static final Integer SYS_MENU_ROLE_CS = 2;

    public static final String ROLE_SHIPPER = "货主"; //
    public static final String ROLE_CARRIER = "承运商"; //
    public static final String ROLE_SUPPLIER = "供应商"; //

    // 注册来源
    public static final String REGEDIT_SOURCE_APP = "APP";
    public static final String REGEDIT_SOURCE_PC = "PC"; //
    public static final String REGEDIT_SOURCE_ANDROID = "ANDROID"; //
    public static final String REGEDIT_SOURCE_IOS = "IOS"; //
    // public static final String REGEDIT_SOURCE_BUILD = "BUILD"; // 生成司机时自动生成
    public static final String REGEDIT_SOURCE_PC_CARRIER = "PC分配"; // pc承运商注册
    public static final String REGEDIT_SOURCE_IOS_CARRIER = "IOS分配"; // ios承运商注册
    public static final String REGEDIT_SOURCE_ANDROID_CARRIER = "ANDROID分配"; // android承运商注册

    // 存储于缓存中的字段名称
    public static final String SESSION_ID = "SessionId"; // 会话id
    public static final String USER_INFO = "userInfo"; // 用户信息
    public static final String AUTHENTICATION_FLAG_TOTAL = "authticationFlagTotal"; // 总认证状态
    public static final String AUTHENTICATION_FLAG_INFO = "authticationFlagInfo"; // 个人信息认证状态
    public static final String AUTHENTICATION_FLAG_VEHICLE = "authticationFlagVehicle"; // 车辆认证状态
    public static final String AUTHENTICATION_FLAG_USERAUTHTYPE = "userAuthType"; // 车辆认证状态
    public static final String AUTHENTICATION_FLAG_CARRIERCERTFLAG = "carrierCertFlag"; // 承运商认证状态
    public static final String USER_INFO_DETAIL = "userInfoDetail"; // 用户详细信息
    public static final String DRIVER_INFO = "driverInfo"; // 司机信息


    public static final String FILE_TYPE_IMG = "img"; // 上传文件格式：图片
    public static final String FILE_TYPE_VIDEO = "video"; // 上传文件格式：视频
    public static final String FILE_TYPE_AUDIO = "audio"; // 上传文件格式：音频

    // 外部系统标示()
    public static final int EXT_SYSTEM_ID_ALI = 1; // 支付宝
    public static final int EXT_SYSTEM_ID_WEIXIN = 2; // 微信
    public static final int EXT_SYSTEM_ID_UNIONPAY = 3; // 中国银联
    public static final int EXT_SYSTEM_ID_OFFLINE = 4; // 线下支付
    public static final int EXT_SYSTEM_ID_XINLIAN = 5; // 信联支付

    // 支付类型(银行通讯用)
    public static final int PAY_TYPE_ORDERPAY = 1; // 订单支付
    public static final int PAY_TYPE_RECHARGE = 2; // 账户充值

    // 通讯发起者
    public static final int SPONSOR_IN = 1; // 1: 内部系统发起
    public static final int SPONSOR_OUT = 2; // 2：外部系统发起

    // 支付方式
    public static final int PAY_WAY_UNION = 1; // 在线银联
    public static final int PAY_WAY_CREDIT = 2; // 授信
    public static final int PAY_WAY_ACCOUNT = 3; // 我的账户支付
    public static final int PAY_WAY_ALI = 4; // 支付宝支付
    public static final int PAY_WAY_WEIXIN = 5; // 微信支付
    public static final int PAY_WAY_XINLIAN = 6; // 信联支付

    // 支付方式
    public static final int PAY_CHANNEL_ONLINE = 1; // 在线支付
    public static final int PAY_CHANNEL_OFFLINE = 2; // 线下支付
    public static final int PAY_CHANNEL_PLATFORM_PAY = 3; // 平台支付

    // YTL-->TMS数据同步标记
    public static final int SYN_FLAG_NEEDED = 0; // 默认状态
    public static final int SYN_FLAG_OVER = 1; // 同步完成

    public static final String TMS_ORDER_FLAG = "3%"; // TMS订单标记
    // 1.各个模块手机验证码发送
    public static final String PHONE_CODE_REGISTER = "register";
    // 2.忘记密码
    public static final String PHONE_CODE_FORGET = "forget";
    // 3.修改密码
    public static final String PHONE_CODE_EDITPHONE = "edit_Phone";
    // 4.修改支付密码
    public static final String PHONE_CODE_EDITPAYPASSWORD = "edit_PayPassword";
    // 5.子账号修改手机号码
    public static final String PHONE_CODE_EDIT_CHILD = "5";
    // 6.主账号修改手机号码
    public static final String PHONE_CODE_EDIT_MASTER = "6";
    // 7.忘记密码（登录密码）
    public static final String LOGIN_PASSWORD_FORGET = "7";
    // 8.子账号手机号码认证
    public static final String PHONE_CODE_AUTH_CHILD = "8";

    // ----------------------------redis相关--------start----------------------------

    public static final String PC_BANNER_HOME = "pc.banner.home"; // pc首页banner图

    public static final String APP_BANNER_HOME = "app.banner.home"; // app首页banner图

    public static final String APP_BANNER_HOME_NEW = "app.banner.home.new"; // app首页banner图 增加图片链接地址

    // -------------------------------------end---------------------------

    // 认证标记 0未认证 1认证通过 2认证审核中 3认证失败
    public static final Integer QUALIFICATION_FLAG_NO = 0; // 未认证
    public static final Integer QUALIFICATION_FLAG_YES = 1; // 认证通过
    public static final Integer QUALIFICATION_FLAG_UN = 2; // 认证审核中
    public static final Integer QUALIFICATION_FLAG_FAIL = 3; // 认证失败

    public static final Integer SUBSCRIBE = 1; // 关注（微信公众号）
    // 交行银企直联配置文件路径
    public static final String PAY_BOCM = "/pay_bocm.properties";
    // ------------------信联支付相关 开始--------------------
    // 信联支付相关
    public static final String PAY_XINLIAN = "/pay_xinlian.properties";
    // 充值最小金额20元
    public static final int CHARGE_MININUM = 20;
    // 充值金额10的倍数
    public static final int CHARGE_NUMROLE = 10;
    public static final String XINLIAN_STATUS_SUCCESS = "SUCCESS";
    public static final String XINLIAN_STATUS_FAILED = "FAILED";
    public static final String XINLIAN_MESSAGE_CODE = "000000";
    // ------------------信联支付相关 开始--------------------

    public static final String VALIDATE_KEY = "validate.key"; // 图片验证码的key

    // 开票类型
    public static final int BILL_TYPE_COMMON = 1; // 普通发票
    public static final int BILL_TAX = 2; // 增值税发票
    public static final String MULTI_ORDER_PREFIX = "5";

    // 合同管理
    public static final String CONTRACT_RECOVER_STATUS = "1"; // 恢复
    public static final String CONTRACT_FREEZE_STATUS = "2"; // 冻结
    public static final String CONTRACT_PAST_STATUS = "0"; // 过期
    public static final String CONTRACT_CANCELLATION_STATUS = "3"; // 作废
    public static final String CONTRACT_PENDINGTRIAL_STATUS = "4"; // 待审
    public static final String CONTRACT_BACK_STATUS = "5"; // 退回
    public static final Integer CONTRACT_WAIT_STATUS = 6; // 6:待使用

    // 合同签约状态
    public static final Integer CONTRACT_NEW_SIGN = 0; // 新签
    public static final Integer CONTRACT_RENEW_SIGN = 1; // 续签

    // 承运商合同状态
    public static final Integer CONTRACT_MARK_NO = 0; // 未签
    public static final Integer CONTRACT_MARK_DONE = 1; // 已签

    // 合同银行账户类型
    public static final Integer CONTRACT_BANK_ACCOUNT_PERSONAGE = 1; // 个人
    public static final Integer CONTRACT_BANK_ACCOUNT_ENTERPRISE = 2; // 企业

    // 承运商合同类型
    public static final Integer CONTRACT_TYPE_CARRIER = 1; // 承运商
    public static final Integer CONTRACT_TYPE_SHIPPER = 0; // 货主

    // 承运商日报表IS_BILLED标志位 未出账 0 已出账 1 提前结账 2 申请结账 3
    public static final Integer BILLED_NO = 0;
    public static final Integer BILLED_YES = 1;
    public static final Integer BILLED_FRONT = 2;
    public static final Integer BILLED_NORMAL = 3;
    // 账单中订单交易状态
    public static final int TRADE_TYPE_SURE_RECEIVE = 1; // 确认收货
    public static final int TRADE_TYPE_SURE_RECEIPT = 2; // 确认回单
    // 结算状态 (0 未结算 1 已结算 2部分结算) 默认0
    public static final int SETTLEMENT_STATUS_NO = 0;
    public static final int SETTLEMENT_STATUS_YES = 1;
    public static final int SETTLEMENT_STATUS_UN = 2;
    // 确认关联（子账户是否关联司机主账户）0 未关联 1 已关联 2不关联
    public static final int RELATED_NO = 0;
    public static final int RELATED_YES = 1;
    public static final int RELATED_UN = 2;
    // 支付状态
    public static final String YES_PAY = "1"; // 已支付
    public static final String NO_PAY = "0"; // 未支付
    public static final String PORTION_PAY = "2"; // 部分支付

    // 司机定位激活状态 激活状态(1：激活 2： 未激活 3:激活中 4:激活失败)
    public static final Integer LOCATION_FLAG_NO = 2;
    public static final Integer LOCATION_FLAG_UN = 3;
    public static final Integer LOCATION_FLAG_YES = 1;
    public static final Integer LOCATION_FLAG_FAIL = 4;
    public static final Integer LOCATION_UNSUBSCRIBED = 5;

    public static final String AUDITVERSIONTIME = "2016-11-30";

    // 子账户总公司、总部 代码级名称
    public static final String HEAD_OFFICE_CODE = "HBC00001";
    public static final String HEAD_OFFICE_NAME = "总公司";
    public static final String HEAD_QUARTERS_CODE = "HBN00001";
    public static final String HEAD_QUARTERS_NAME = "总部";
    // 地区设置中国的code
    public static final String AREA_CHINA = "100000";
    // 数据导出最大条数
    public static final int SUM_EXPORT_EXCEL = 6000;
    // 开放平台Url
    public static final String OPEN_PROPERTIES = "/open.properties";

    // 分享內容id
    public static final Long SHARE_CONTENT_ID_DEFAULT = -1L; // 默认分享id，-1表示没有意义

    // 分享类型(0：未知,1：货源分享)
    public static final Integer SHARE_FLAG_DEFAULT = 0; // 未知
    public static final Integer SHARE_FLAG_GOODS = 1; // 货源分享

    // 分享设备（0.未知；1.Android；2.IOS）
    public static final Integer SHARING_DEVICE_DEFAULT = 0; // 未知
    public static final Integer SHARING_DEVICE_ANDROID = 1; // Android
    public static final Integer SHARING_DEVICE_IOS = 2; // IOS

    // 发票(1.需要；0.不需要)
    public static final String CONTRACT_NEED_INVOICE = "1";
    public static final String CONTRACT_UNNEED_INVOICE = "0";

    // 司机合同状态
    public static final String DRIVER_CONTRACT_NO = "0"; // 待申请
    public static final String DRIVER_CONTRACT_YES = "1"; // 签署成功
    // public static final String DRIVER_CONTRACT_APPLY = "2"; // 申请中
    public static final String DRIVER_CONTRACT_ERROR = "3"; // 申请失败
    public static final String DRIVER_CONTRACT_OK = "4"; // 申请成功
    // public static final String DRIVER_CONTRACT_NOT_SIGN = "5"; // 申请成功

    // 结算锁
    public static final String DRIVER_CARRIERBILL_LOCK_NO = "0"; // 未锁
    public static final String DRIVER_CARRIERBILL_LOCK_YES = "1"; // 已锁

    // 结算方式
    public static final String POCLEAR_DOUBLE = "4"; // 物银通和平台两种形式
    public static final String POCLEAR_ONE_TYPE = "5"; // 保理结算方式(物银通)

    // 法大大 请求标识
    public static final String FDD_CONTRACT_YES = "1"; // 成功
    public static final String FDD_CONTRACT_NO = "0"; // 失败

    // 物银通还款
    public static final String WYT_CHANNEL_ONLINE = "1"; // 线下支付

    public static final Integer WYT_FACTORING_ORGANIZATION = 1;
    public static final Integer XM_FACTORING_ORGANIZATION = 2;

    // 是否为条件查询
    public static final String TOTAL_TYPE_YES = "1"; // 条件查询
    public static final String TOTAL_TYPE_NO = "0"; // 非条件查询

    // 司机金融状态
    public static final String FINANCIAL_STUTAS_ZERO = "0"; // 未认证
    public static final String FINANCIAL_STUTAS_ONE = "1"; // 认证中
    public static final String FINANCIAL_STUTAS_TWO = "2"; // 认证成功
    public static final String FINANCIAL_STUTAS_THREE = "3"; // 认证失败

    // 手机短信发送供应商类型（1：集时通，2：大汉三通）
    public static final String SMS_TYPE = "sms_type";

    // 保理申请状态
    public static final Integer APPLY_STATUS_NO = 0; // 未申请
    public static final Integer APPLY_STATUS_AWAIT = 1; // 申请中
    public static final Integer APPLY_STATUS_OK = 2; // 保理支付成功
    public static final Integer APPLY_STATUS_ERROR = 3; // 支付失败
    public static final Integer APPLY_STATUS_APPLY = 4; // 待申请

    // 询价类型
    public static final Integer GOODS_TYPE_NO = 0; // 发货询价
    public static final Integer GOODS_TYPE_YES = 1; // 定向询价

    // 询价状态
    public static final Integer GOODS_STATUS_CANCEL = 0; // 已取消
    public static final Integer GOODS_STATUS_NO = 1; // 未报价
    public static final Integer GOODS_STATUS_YES = 2; // 已报价
    public static final Integer GOODS_STATUS_GENERATED = 3; // 已生成订单
    public static final Integer GOODS_STATUS_EXPIRED = 4; // 已失效

    // 物银通返回异常信息
    public static final String SYSTEM_ERROR = "0000"; // 系统异常 (可以重复申请)
    public static final String LIMIT_ERROR = "0001"; // 可用额度不足，剩余额度XXXX元
    public static final String MONTH_ERROR = "0002"; // 超出最长1个月的使用期限
    public static final String OPERATIN_ERROR = "0003"; // 交易流水号已被使用 (可以重复申请)
    public static final String DRIVER_LIMIT_ERROR = "0004"; // 该司机不存在
    public static final String DRIVER_ERROR = "0005"; // 并没有使用该司机发起融资申请或未获得授信额度
    public static final String ORDER_ERROR = "0006"; // 该运单已经发起过用款申请
    public static final String WAYBILL_ERROR = "0007"; // 运单信息取得失败 (可以重复申请)
    // 额度管理开启
    public static final String LIMIT_FLAG_ON = "1";
    // 额度管理未开启
    public static final String LIMIT_FLAG_OFF = "0";
    // 承认商角色
    public static final Integer USER_CARRIER = 1;
    // 货主角色
    public static final Integer USER_SHIPER = 1;
    // 传入承认商角色
    public static final String ROLE_CARRIERS = "1";
    // 传入货主角色
    public static final String ROLE_ShIPPER = "0";

    // 合同相关的状态
    public static final Integer CONTRACT_SIGN_STATUS = 1; // 1为续签的合同
    public static final Integer CONTRACT_RENEWAL＿FLAG = 0; // 0为没有续签的标识
    public static final Integer CONTRACT_PAY_WAY = 0; // 0为线上支付或者线下支付模式
    public static final Integer CONTRACT_STATUS_NORMAL = 1; // 1为正常合同
    public static final Integer CONTRACT_STATUS_LOSE = 3; // 3为失效
    public static final Integer CONTRACT_STATUS_CHECK = 4; // 4为待审
    public static final Integer CONTRACT_STATUS_RETREAT = 5; // 5为退回
    public static final Integer CONTRACT_STATUS_PENDING_USE = 6; // 正常待使用的
    public static final Integer CONTRACT_MARK = 0; // 承运商没有合同
    public static final Integer LOANING_PAY_WAY = 1;// 1为垫资模式
    public static final Integer LIST_SIZE = 0;// 集合长度为0
    public static final Integer CONTRACT_LIST_SIZE = 2;// 集合中查到的合同数量为2
    public static final String LOANING_CONTRACT = "d"; // 垫资合通编号的开头字母
    public static final String COMMON_CONTRACT = "p"; // 普通合通编号的开头字母
    public static final String CONTRACT_STATUS = "1"; // 合同状态
    public static final String SHIPPER_SYS_CODE = "";// 设置货主的syscode为空值
    public static final String CARRIER_SYS_CODE = "";// 设置承运商的syscode为空值

    public static final Integer USER_AUTH_NO = 0; // 未选择
    public static final Integer USER_AUTH_PAL = 1; // 企业
    public static final Integer USER_AUTH_PERSON = 2; // 个体

    // 司机金融物银通审核状态
    public static final String FINANCIAL_STUTAS_ERROR = "0";// 审核失败
    public static final String FINANCIAL_STUTAS_OK = "1";// 开通成功
    public static final String FINANCIAL_STUTAS_AWIT = "2";// 审核中

    // 手机短信发送供应商类型（1：全部）
    public static final String SYN_ALL_ACTIVATION = "synAllActivation";

    // 有定位信息
    public static final Integer LOCATION_HAVE = 1;

    // 没有定位信息
    public static final Integer LOCATION_NOT_HAVE = 0;

    // 装车短信回复1
    public static final String SMS_CONTENT = "1";

    public static final String TYPE_QYLX = "qylx"; // 字典类型：企业类型
    // public static final String TYPE_THS = "ths"; //字典类型：提货省
    // public static final String TYPE_THCITY = "thcity"; //字典类型：提货城市

    public static final Integer ACCOUNT_STATUS_UN = 0;// 未对账
    public static final Integer ACCOUNT_STATUS_YES = 1;// 已对账
    public static final Integer ACCOUNT_STATUS_BILL = 2;// 已出票

    // 返回code
    public static final String CODE = "code";
    // 返回msg
    public static final String MSG = "msg";

    // 最新定位时间间隔（分）
    public static final String LATEST_LOCATION_TIME = "latestLocationTime";

    // 定位标志（定位开启）
    public static final Integer LOCATION_FLAG = 1;

    /**
     * 后台配置用到的常量
     */
    public static final String VEHICLE_LENGTH = "clcd";  //车辆长度
    public static final String VEHICLE_TYPE = "cllx";//车辆类型
    public static final String DRIVER_LINECE_TYPE = "jzlx";   //驾照类型

    public static final Integer UN_LOCK_FLAG = 0; // 未锁定
    public static final Integer UN_ACTIVE_FLAG = 0; // 未激活
    public static final String DEFAULT_SYSCODE = "adminYL"; // 默认运力资源平台菜单sysCode
    public static final Integer ACCOUNT_TYPE = 1; // 管理员才能登录后台系统
    public static final Integer USERTYPE_E = 1; // 企业用户
    public static final Integer USERTYPE_P = 0; // 个体用户
    public static final String MANAGE_ROLE_SHIPPER = "货主"; //
    public static final String MANAGE_ROLE_CARRIER = "承运商"; //
    public static final String MANAGE_ROLE_SUPPLIER = "供应商"; //
    public static final String DEFAULT_SYSCODEYL = "default";
    public static final Integer ADMIN_FLAG_YES = 1; // admin权限 1运力资源平台权限 0用户公司权限
    public static final Integer ADMIN_FLAG_NO = 0;
    public static final String SUPER_MENU_ID = "000000";

    public static final Integer PAY_FLAG_NO = 0; // 未付款
    public static final Integer PAY_FLAG_YES = 1; // 已付款
    public static final Integer PAY_FLAG_UN = 2; // 付款失败

    public static final Integer MANAGE_APPROVE_FLAG_UN = 1; // 未审核
    public static final Integer MANAGE_APPROVE_FLAG_YES = 2; // 审核通过
    public static final Integer MANAGE_APPROVE_FLAG_NO = 3; // 审核不通过

    public static final String IMG_ADRESS = PropertiesUtil.readValue("imgAddress");
    public static final String INSTANCE_ID = PropertiesUtil.readValue("instanceId");
    /**
     * 京东万象appkey
     */
    public static final String APPKEY = PropertiesUtil.readValue("appkey");

    /**
     * 合同中用到的常量
     */
    public static final String CONTRACT_TYPE = "3";  //合同状态为3是既不是普通合同也不是垫资合同
    public static final String CONTRACT_END_TIME = "0";//合同截止时间标识


    // 交易状态0：创建，1：成功，2：失败，3：审核中，4：退款，5：取消
    public static final Integer PAYMENT_STATUS_CREATE = 0;
    public static final Integer PAYMENT_STATUS_SUCCESS = 1;
    public static final Integer PAYMENT_STATUS_FAIL = 2;
    public static final Integer PAYMENT_STATUS_AUDIT = 3;
    public static final Integer PAYMENT_STATUS_REFUND = 4;
    public static final Integer PAYMENT_STATUS_CANCEL = 5;

    // 定位
    public static final String LOC = "loc";
    // 定位
    public static final String TYPE_LOC = "1";
    // 拨号
    public static final String DIAL = "dial";
    // 拨号
    public static final String TYPE_DIAL = "0";

    // 过去间隔月
    public static final String intervalMonth = "intervalMonth";
    // 按月查询默认间隔月份
    public static final String monthlyQuery = "monthlyQuery";


    /**
     * [app]--货主首页,全国城市对应的省份简称
     * 全国城市对应的省份简称
     *
     * @author 106869-zdl
     * 修改人 --zdl
     */
    public final class Area {
        public static final Map<String, String> areasmap = new HashMap<String, String>();

        static {
            areasmap.put("上海", "沪");
            areasmap.put("北京", "京");
            areasmap.put("天津", "津");
            areasmap.put("内蒙古", "蒙");
            areasmap.put("新疆", "新");
            areasmap.put("西藏", "藏");
            areasmap.put("宁夏", "宁");
            areasmap.put("广西", "桂");
            areasmap.put("黑龙江", "黑");
            areasmap.put("吉林", "吉");
            areasmap.put("辽宁", "辽");
            areasmap.put("山西", "晋");
            areasmap.put("河北", "冀");
            areasmap.put("青海", "青");
            areasmap.put("山东", "鲁");
            areasmap.put("河南", "豫");
            areasmap.put("安徽", "皖");
            areasmap.put("江苏", "苏");
            areasmap.put("浙江", "浙");
            areasmap.put("福建", "闽");
            areasmap.put("江西", "赣");
            areasmap.put("湖南", "湘");
            areasmap.put("湖北", "鄂");
            areasmap.put("广东", "粤");
            areasmap.put("海南", "琼");
            areasmap.put("甘肃", "甘");
            areasmap.put("陕西", "陕西");
            areasmap.put("贵州", "黔");
            areasmap.put("云南", "滇");
            areasmap.put("四川", "川");
            areasmap.put("香港", "港");
            areasmap.put("澳门", "澳");
            areasmap.put("台湾", "台");
        }

        //根据输入的省份，得到相应省份的简称
        public static String ConvertProToCaptial(String province) {
            if (areasmap.containsKey(province)) {
                return areasmap.get(province);
            }

            return null;

        }

    }

}
